libxl: avoid leaking in libxl__initiate_device_remove
authorWei Liu <wei.liu2@citrix.com>
Tue, 14 Jul 2015 16:41:07 +0000 (17:41 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Jul 2015 09:57:01 +0000 (10:57 +0100)
commit974e208b404a8a4f1df006082030f4d3bf884c1e
tree7a41d5de2fc97ff785ed4ce7a855479b73a068ab
parent94ef16a42a21ab166be470fd6fca5c4acf896311
libxl: avoid leaking in libxl__initiate_device_remove

Change "return" to "goto out_success" to correctly dispose of the
structure.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c